package interpreter;

/**
 * 减法操作
 */
public class SubExp extends AbstractNonTerminalExp{


    public SubExp(IExpression leftExp, IExpression rightExp) {
        super(leftExp, rightExp);
    }

    //解释
    @Override
    public int interpret() {
        return this.leftExp.interpret() - this.rightExp.interpret();
    }
}
